{assign var="imgSrc" value=UploadImageFacade::resolveImagePath($model->img_id, "230x336")}
<img src="{$imgSrc}" alt="" style="float: left; margin: 0 20px 0 0;" height="336" width="230" />


<div class="post-detail">
<h1>{$model->title}</h1>
<p class="date">{$model->publish_date|date_format:"%e.%m.%Y %H:%M"}</p>
<div class="text">{$model->text}</div>
{if ($isAuthor == true)}
<a href="/advertisement/delete/{$model->advt_id}" class="more">Удалить</a>
<a href="/advertisement/update/{$model->advt_id}" class="more">Редактировать</a>
<a href="/advertisement/updateImg/{$model->advt_id}">Изменить логотип</a>
{/if}

<div class="clear-floating"></div>
{commentFlowWidget commentFlowId=$model->comment_flow_id count=5}

</div>